package com.yunjijia.service.impl;

import com.yunjijia.mapper.PermissionMapper;
import com.yunjijia.mapper.UserMapper;
import com.yunjijia.pojo.Permission;
import com.yunjijia.service.IPermissionService;
import com.yunjijia.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PermissionServiceImpl implements IPermissionService {


    @Resource
    private PermissionMapper permissionMapper;


    /**
     * 获取所有权限对象url
     *
     * @return
     */
    @Override
    public List<Permission> queryAll() {
        return permissionMapper.queryAll();
    }

    @Override
    public Permission getPermissionByid(int id) {
        return permissionMapper.getPermissionByid(id);
    }
}
